//地形对应五行
window._MAPTYPE = {
    '水':'水',
    '矮山':'火',
    '岩浆':'火',
    '林':'木',
    '沼泽':'水',
    '雪林':'木',
    '雪山':'火',
    '路':'金',

    "野区_大宋皇陵_中":"水",
    "野区_大宋皇陵_巽":"火",
    "野区_大宋皇陵_坎":"木",
    "野区_大宋皇陵_艮":"金",
    "野区_大宋皇陵_坤":"水",
    "野区_大宋皇陵_震":"土",
    "野区_大宋皇陵_离":"木",
    "野区_大宋皇陵_兑":"火",
    "野区_大宋皇陵_乾":"土"

};

window._MAPHELPER = {

    _MAPTREE:null,

    getMapTree:function(){

        if(!_MAPHELPER._MAPTREE){
            _MAPHELPER._MAPTREE={};
            for(var key in _MAPCONFIG){
                var tempmap = _MAPCONFIG[key];
                if(tempmap.isRoot){
                    _MAPHELPER._MAPTREE[key]=[];
                }
            }

            for(var key in _MAPCONFIG){
                var tempmap = _MAPCONFIG[key];
                if(tempmap.parent&&_MAPHELPER._MAPTREE[tempmap.parent]){
                    _MAPHELPER._MAPTREE[tempmap.parent].push(key);
                }
            }
        }

        return _MAPHELPER._MAPTREE;
    }

};

window._MAPCONFIG = {
    
    "大地图":{path:"西游世界",name:'西游世界',isRoot:0},
    "西岐":{path:"二级_西岐",name:'西岐',isRoot:0},
    "天宫":{path:"二级_天宫",name:'天宫',isRoot:0},

    "西岐皇宫":{path:"西岐皇宫",name:'西岐皇宫',isRoot:0},
    "聚贤楼":{path:"聚贤楼",name:'聚贤楼',isRoot:0},
    "封神台":{path:"封神台",name:'封神台',isRoot:0},

    "铁匠铺":{path:"铁匠铺",name:'铁匠铺',isRoot:0},
    "书籍铺":{path:"书籍铺",name:'书籍铺',isRoot:0},
    "大酒店":{path:"大酒店",name:'大酒店',isRoot:0},
    "杂货铺":{path:"杂货铺",name:'杂货铺',isRoot:0},

    "草药铺":{path:"草药铺",name:'草药铺',isRoot:0},
    "裁缝铺":{path:"裁缝铺",name:'裁缝铺',isRoot:0},

// 二级
    "五台山":{path:"五台山",name:'五台山',isRoot:1},//5级
    "长安城":{path:"长安城",name:'长安城',isRoot:1},//10级
    "双叉岭":{path:"双叉岭",name:'双叉岭',isRoot:1},//15级，抉择1-1
    "泾河":{path:"泾河",name:'泾河',isRoot:1},//20级，抉择1-2
    "五行山":{path:"五行山",name:'五行山',isRoot:1},//30级
    "蛇盘山":{path:"蛇盘山",name:'蛇盘山',isRoot:1},//40级
    "观音禅院":{path:"观音禅院",name:'观音禅院',isRoot:1},//50级
    "乌斯藏国":{path:"乌斯藏国",name:'乌斯藏国',isRoot:1},//60级
    "黄风岭":{path:"黄风岭",name:'黄风岭',isRoot:1},//70级
    "黑风山":{path:"黑风山",name:'黑风山',isRoot:1},//80级
    "流沙河":{path:"流沙河",name:'流沙河',isRoot:1},//100级
    "龙宫":{path:"龙宫",name:'龙宫',isRoot:1,premap:['泾河','蛇盘山','流沙河']},//100级
    "莫府外郊":{path:"莫府外郊",name:'莫府外郊',isRoot:1},//120级
    "蓬莱岛":{path:"蓬莱岛",name:'蓬莱岛',isRoot:1},//140级
    // "流沙国":{path:"流沙国",name:'流沙国',isRoot:1},
    "万寿山":{path:"万寿山",name:'万寿山',isRoot:1},//160级
    "白虎岭":{path:"白虎岭",name:'白虎岭',isRoot:1},//180级
    "宝象国":{path:"宝象国",name:'宝象国',isRoot:1},//200级
    "地府":{path:"地府",name:'地府',isRoot:1,premap:['双叉岭','花果山']},//200级
    "花果山":{path:"花果山",name:'花果山',isRoot:1},//220级
    "碗子山":{path:"碗子山",name:'碗子山',isRoot:1},//240级
    "平顶山":{path:"平顶山",name:'平顶山',isRoot:1},//260级
    "黑水河":{path:"黑水河",name:'黑水河',isRoot:1},//270级
    "乌鸡国":{path:"乌鸡国",name:'乌鸡国',isRoot:1},//280级
    "枯松涧":{path:"枯松涧",name:'枯松涧',isRoot:1},//300级
    "天宫":{path:"天宫",name:'天宫',isRoot:1,premap:['车迟国']},//300级
    "车迟国":{path:"车迟国",name:'车迟国',isRoot:1},//320级
    "通天河":{path:"通天河",name:'通天河',isRoot:1},//340级
    "金兜山":{path:"金兜山",name:'金兜山',isRoot:1},//360级
    "女儿国":{path:"女儿国",name:'女儿国',isRoot:1},//380级
    "毒敌山":{path:"毒敌山",name:'毒敌山',isRoot:1},//400级
    "普陀山":{path:"普陀山",name:'普陀山',isRoot:1,premap:['黑风山','枯松涧']},//400级
    "碧波潭":{path:"碧波潭",name:'碧波潭',isRoot:1},//420级
    "无名之地":{path:"无名之地",name:'无名之地',isRoot:1},//440级
    "瀛洲岛":{path:"瀛洲岛",name:'瀛洲岛',isRoot:1},//460级    
    "火焰山":{path:"火焰山",name:'火焰山',isRoot:1},//480级
    "祭赛国":{path:"祭赛国",name:'祭赛国',isRoot:1},//500级
    "方丈岛":{path:"方丈岛",name:'方丈岛',isRoot:1,premap:['蓬莱岛','瀛洲岛']},//500级
    "荆棘岭":{path:"荆棘岭",name:'荆棘岭',isRoot:1},//520级
    "七绝山":{path:"七绝山",name:'七绝山',isRoot:1},//540级
    "小西天":{path:"小西天",name:'小西天',isRoot:1},//560级
    "朱紫国":{path:"朱紫国",name:'朱紫国',isRoot:1},//580级
    "武当山":{path:"武当山",name:'武当山',isRoot:1,premap:['金兜山','小西天']},//600级
    "黄花岭":{path:"黄花岭",name:'黄花岭',isRoot:1},//600级
    "盘丝岭":{path:"盘丝岭",name:'盘丝岭',isRoot:1},//620级
    "狮驼岭":{path:"狮驼岭",name:'狮驼岭',isRoot:1},//650级
    "比丘国":{path:"比丘国",name:'比丘国',isRoot:1},//680级
    "陷空山":{path:"陷空山",name:'陷空山',isRoot:1},//700级 
    "灭法国":{path:"灭法国",name:'灭法国',isRoot:1},//720级 
    "隐雾山":{path:"隐雾山",name:'隐雾山',isRoot:1},//750级 
    "玉华州":{path:"玉华州",name:'玉华州',isRoot:1},//770级 
    "竹节山":{path:"竹节山",name:'竹节山',isRoot:1},//800级     
    "金平府":{path:"金平府",name:'金平府',isRoot:1},//820级 
    "天竺国":{path:"天竺国",name:'天竺国',isRoot:1},//850级 
    "玉真观":{path:"玉真观",name:'玉真观',isRoot:1},//880级
    "凌云渡":{path:"凌云渡",name:'凌云渡',isRoot:1},//900级
    "灵山脚下":{path:"灵山脚下",name:'灵山脚下',isRoot:1},//920级
    "灵山":{path:"灵山",name:'灵山',isRoot:1},//950级
    "大雷音寺":{path:"大雷音寺",name:'大雷音寺',isRoot:1},//1000级
    

// 三级
    "山寨":{path:"山寨",name:'山寨',isRoot:0},//五台山
    "殊像寺":{path:"殊像寺",name:'殊像寺',isRoot:0},//五台山
    "大慈恩寺":{path:"大慈恩寺",name:'大慈恩寺',isRoot:0},//长安
    "大唐皇宫":{path:"大唐皇宫",name:'大唐皇宫',isRoot:0},//长安
    "袁守诚宅":{path:"袁守诚宅",name:'袁守诚宅',isRoot:0},//长安
    "双叉洞":{path:"双叉洞",name:'双叉洞',isRoot:0},//双叉岭
    "泾河龙宫":{path:"泾河龙宫",name:'泾河龙宫',isRoot:0},//泾河
    "鹰愁涧":{path:"鹰愁涧",name:'鹰愁涧',isRoot:0},//蛇盘山
    "黑风洞":{path:"黑风洞",name:'黑风洞',isRoot:0},//黑风山
    "五指洞":{path:"五指洞",name:'五指洞',isRoot:0},//五行山
    "刘伯钦宅":{path:"刘伯钦宅",name:'刘伯钦宅',isRoot:0},//五行山
    "鹰愁涧龙宫":{path:"鹰愁涧龙宫",name:'鹰愁涧龙宫',isRoot:0},//蛇盘山
    "黄风洞":{path:"黄风洞",name:'黄风洞',isRoot:0},//黄风岭
    "观音殿":{path:"观音殿",name:'观音殿',isRoot:0},//观音禅院
    "高老庄":{path:"高老庄",name:'高老庄',isRoot:0},//乌斯藏国
    "云栈洞":{path:"云栈洞",name:'云栈洞',isRoot:0},//乌斯藏国
    "莫府":{path:"莫府",name:'莫府',isRoot:0},//莫府外郊
    "流沙河水府":{path:"流沙河水府",name:'流沙河水府',isRoot:0},//流沙河
    "白云洞":{path:"白云洞",name:'白云洞',isRoot:0},//蓬莱岛
    "水帘洞":{path:"水帘洞",name:'水帘洞',isRoot:0},//花果山
    "五庄观":{path:"五庄观",name:'五庄观',isRoot:0},//万寿山
    "波月洞":{path:"波月洞",name:'波月洞',isRoot:0},//碗子山
    "宝象国皇宫":{path:"宝象国皇宫",name:'宝象国皇宫',isRoot:0},//宝象国
    "白骨洞":{path:"白骨洞",name:'白骨洞',isRoot:0},//白虎岭
    "黑水河水府":{path:"黑水河水府",name:'黑水河水府',isRoot:0},//黑水河
    "莲花洞":{path:"莲花洞",name:'莲花洞',isRoot:0},//平顶山
    "压龙洞":{path:"压龙洞",name:'压龙洞',isRoot:0},//平顶山
    "火云洞":{path:"火云洞",name:'火云洞',isRoot:0},//枯松涧
    "乌鸡国皇宫":{path:"乌鸡国皇宫",name:'乌鸡国皇宫',isRoot:0},//乌鸡国
    "八宝琉璃井":{path:"八宝琉璃井",name:'八宝琉璃井',isRoot:0},//乌鸡国
    "宝林寺":{path:"宝林寺",name:'宝林寺',isRoot:0},//乌鸡国
    "井龙宫":{path:"井龙宫",name:'井龙宫',isRoot:0},//乌鸡国
    "车迟国皇宫":{path:"车迟国皇宫",name:'车迟国皇宫',isRoot:0},//车迟国
    "智渊寺":{path:"智渊寺",name:'智渊寺',isRoot:0},//车迟国
    "三清观":{path:"三清观",name:'三清观',isRoot:0},//车迟国
    "金兜洞":{path:"金兜洞",name:'金兜洞',isRoot:0},//金兜山
    "水鼋之第":{path:"水鼋之第",name:'水鼋之第',isRoot:0},//通天河
    "聚仙庵":{path:"聚仙庵",name:'聚仙庵',isRoot:0},//女儿国
    "女儿国皇宫":{path:"女儿国皇宫",name:'女儿国皇宫',isRoot:0},//女儿国
    "琵琶洞":{path:"琵琶洞",name:'琵琶洞',isRoot:0},//毒敌山
    "杨家庄":{path:"杨家庄",name:'杨家庄',isRoot:0},//无名之地
    "芭蕉洞":{path:"芭蕉洞",name:'芭蕉洞',isRoot:0},//火焰山
    "摩云洞":{path:"摩云洞",name:'摩云洞',isRoot:0},//火焰山
    "万圣龙宫":{path:"万圣龙宫",name:'万圣龙宫',isRoot:0},//碧波潭
    "丹涯仙府":{path:"丹涯仙府",name:'丹涯仙府',isRoot:0},//瀛洲岛
    "祭赛国皇宫":{path:"祭赛国皇宫",name:'祭赛国皇宫',isRoot:0},//祭赛国
    "金光寺":{path:"金光寺",name:'金光寺',isRoot:0},//祭赛国
    "木仙庵":{path:"木仙庵",name:'木仙庵',isRoot:0},//荆棘岭
    "陀螺庄":{path:"陀螺庄",name:'陀螺庄',isRoot:0},//七绝山
    "蛇洞":{path:"蛇洞",name:'蛇洞',isRoot:0},//七绝山
    "小雷音寺":{path:"小雷音寺",name:'小雷音寺',isRoot:0},//小西天
    "朱紫国皇宫":{path:"朱紫国皇宫",name:'朱紫国皇宫',isRoot:0},//朱紫国
    "獬豸洞":{path:"獬豸洞",name:'獬豸洞',isRoot:0}, //朱紫国
    "太和宫":{path:"太和宫",name:'太和宫',isRoot:0}, //武当山
    "黄花观":{path:"黄花观",name:'黄花观',isRoot:0}, //黄花岭
    "盘丝洞":{path:"盘丝洞",name:'盘丝洞',isRoot:0}, //盘丝岭
    "比丘国皇宫":{path:"比丘国皇宫",name:'比丘国皇宫',isRoot:0}, //比丘国
    "清华仙府":{path:"清华仙府",name:'清华仙府',isRoot:0}, //比丘国
    "狮驼洞":{path:"狮驼洞",name:'狮驼洞',isRoot:0}, //狮驼岭
    "狮驼国皇宫":{path:"狮驼国皇宫",name:'狮驼国皇宫',isRoot:0}, //狮驼岭
    "镇海禅林寺":{path:"镇海禅林寺",name:'镇海禅林寺',isRoot:0},  //陷空山   
    "无底洞":{path:"无底洞",name:'无底洞',isRoot:0}, //陷空山
    "灭法国皇宫":{path:"灭法国皇宫",name:'灭法国皇宫',isRoot:0}, //灭法国
    "折岳连环洞":{path:"折岳连环洞",name:'折岳连环洞',isRoot:0}, //隐雾山
    "樵子家":{path:"樵子家",name:'樵子家',isRoot:0}, //
    "玉华州王宫":{path:"玉华州王宫",name:'玉华州王宫',isRoot:0}, //玉华州
    "虎口洞":{path:"虎口洞",name:'虎口洞',isRoot:0}, //玉华州
    "慈云寺":{path:"慈云寺",name:'慈云寺',isRoot:0}, //金平府
    "玄英洞":{path:"玄英洞",name:'玄英洞',isRoot:0}, //金平府
    "九曲盘桓洞":{path:"九曲盘桓洞",name:'九曲盘桓洞',isRoot:0}, //竹节山
    "天竺国皇宫":{path:"天竺国皇宫",name:'天竺国皇宫',isRoot:0},//天竺国
    "毛颖山":{path:"毛颖山",name:'毛颖山',isRoot:0},//天竺国
    "布金禅寺":{path:"布金禅寺",name:'布金禅寺',isRoot:0},//天竺国
    "月宫":{path:"月宫",name:'月宫',isRoot:0},//300级，天宫
    "云楼宫":{path:"云楼宫",name:'云楼宫',isRoot:1,premap:['黄风岭','黑水河']},//400级，天宫-对标普陀山选择
    "南天门":{path:"南天门",name:'南天门',isRoot:1,premap:['莫府外郊','火焰山']},//500级，天宫-对标方丈岛选择
    "雷部":{path:"雷部",name:'雷部',isRoot:1,premap:['通天河','七绝山']},//600级，天宫-对标武当山选择
    "通明殿":{path:"通明殿",name:'通明殿',isRoot:1,premap:['宝象国','乌鸡国','比丘国']},//700级，天宫
    "神霄玉府":{path:"神霄玉府",name:'神霄玉府',isRoot:1,premap:['盘丝岭','隐雾山']},//800级，天宫
    "紫微宫":{path:"紫微宫",name:'紫微宫',isRoot:1,premap:['黄花岭','玉华州','天竺国']},//900级，天宫
    "凌霄殿":{path:"凌霄殿",name:'凌霄殿',isRoot:1,premap:['灵山']},//1000级，天宫
    "兜率宫":{path:"兜率宫",name:'兜率宫',isRoot:1,premap:['黄风岭','火焰山','七绝山','隐雾山','灵山']},//1000级，天宫
    "弥罗宫":{path:"弥罗宫",name:'弥罗宫',isRoot:1,premap:['黑水河','通天河','宝象国','天竺国','灵山']},//1000级，天宫
    "太元宫府":{path:"太元宫府",name:'太元宫府',isRoot:0},//方丈岛
    "水晶宫":{path:"水晶宫",name:'水晶宫',isRoot:0},//龙宫
    "森罗殿":{path:"森罗殿",name:'森罗殿',isRoot:0},//地府
    "潮音洞":{path:"潮音洞",name:'潮音洞',isRoot:0},//普陀山
    "如意画卷":{path:"如意画卷",name:'如意画卷',isRoot:0},//






    
}